package com.oraclefmw.crusher.core;

public class Fragment {

	private long begin;

	private String fileName;
	private byte[] content;

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

	public long getBegin() {
		return begin;
	}

	public void setBegin(long begin) {
		this.begin = begin;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	
	public String toString() {
		
		StringBuffer sb = new StringBuffer();
		sb.append( "Filename:" + fileName)
		.append( ",Begin Position:" + begin)
		.append(",Length:" + content.length )
		.append("\r\n");
		
		return sb.toString();
	}
}
